﻿<phone:PhoneApplicationPage 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
	x:Class="CheckOilPrices.compare"
	Orientation="Portrait"
	shell:SystemTray.IsVisible="False">

	<phone:PhoneApplicationPage.Resources>
		<ItemsPanelTemplate x:Key="ItemsPanelTemplate1">
			<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="40,0,0,0"/>
		</ItemsPanelTemplate>
		<Style x:Key="ListBoxItemStyle1" TargetType="ListBoxItem">
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="BorderThickness" Value="0"/>
			<Setter Property="BorderBrush" Value="Transparent"/>
			<Setter Property="Padding" Value="0"/>
			<Setter Property="HorizontalContentAlignment" Value="Left"/>
			<Setter Property="VerticalContentAlignment" Value="Top"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="ListBoxItem">
						<Grid Height="80" Margin="0,0,35,0">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="SelectionStates">
									<VisualState x:Name="Unselected"/>
									<VisualState x:Name="Selected">
										<Storyboard>
											<ColorAnimation Duration="0" To="Black" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="textBlock" d:IsOptimized="True"/>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Collapsed</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image1">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<DoubleAnimation Duration="0" To="1.449" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="image" d:IsOptimized="True"/>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="SelectedUnfocused">
										<Storyboard>
											<ColorAnimation Duration="0" To="Black" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="textBlock" d:IsOptimized="True"/>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Collapsed</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image1">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<TextBlock x:Name="textBlock" TextWrapping="Wrap" Text="ปตท." VerticalAlignment="Center" FontFamily="/CheckOilPrices;component/Fonts/Fonts.zip#TH SarabunPSK" FontSize="48" Margin="0" d:LayoutOverrides="Width" Foreground="#72000000"/>
							<Image x:Name="image" Height="16" Source="images/tri.png" Stretch="Fill" VerticalAlignment="Bottom" HorizontalAlignment="Center" Width="32" Visibility="Collapsed" RenderTransformOrigin="0.5,0.5">
								<Image.RenderTransform>
									<CompositeTransform/>
								</Image.RenderTransform>
							</Image>
							<Image x:Name="image1" Source="images/tri.png" Stretch="Fill" HorizontalAlignment="Center" Width="32" RenderTransformOrigin="0.5,0.5" Margin="0" Height="16" VerticalAlignment="Top" Visibility="Collapsed">
								<Image.RenderTransform>
									<CompositeTransform Rotation="180"/>
								</Image.RenderTransform>
							</Image>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="ListBoxItemStyle2" TargetType="ListBoxItem">
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="BorderThickness" Value="0"/>
			<Setter Property="BorderBrush" Value="Transparent"/>
			<Setter Property="Padding" Value="0"/>
			<Setter Property="HorizontalContentAlignment" Value="Left"/>
			<Setter Property="VerticalContentAlignment" Value="Top"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="ListBoxItem">
						<Grid Height="80" Margin="0,0,35,0">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="SelectionStates">
									<VisualState x:Name="Unselected"/>
									<VisualState x:Name="Selected">
										<Storyboard>
											<ColorAnimation Duration="0" To="Black" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="textBlock" d:IsOptimized="True"/>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Collapsed</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image1">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<DoubleAnimation Duration="0" To="1.449" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="image" d:IsOptimized="True"/>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="SelectedUnfocused">
										<Storyboard>
											<ColorAnimation Duration="0" To="Black" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="textBlock" d:IsOptimized="True"/>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Collapsed</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image1">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<TextBlock x:Name="textBlock" TextWrapping="Wrap" Text="บางจาก" VerticalAlignment="Center" FontFamily="/CheckOilPrices;component/Fonts/Fonts.zip#TH SarabunPSK" FontSize="48" Margin="0" d:LayoutOverrides="Width" Foreground="#72000000"/>
							<Image x:Name="image" Height="16" Source="images/tri.png" Stretch="Fill" VerticalAlignment="Bottom" HorizontalAlignment="Center" Width="32" Visibility="Collapsed" RenderTransformOrigin="0.5,0.5">
								<Image.RenderTransform>
									<CompositeTransform/>
								</Image.RenderTransform>
							</Image>
							<Image x:Name="image1" Source="images/tri.png" Stretch="Fill" HorizontalAlignment="Center" Width="32" RenderTransformOrigin="0.5,0.5" Margin="0" Height="16" VerticalAlignment="Top" Visibility="Collapsed">
								<Image.RenderTransform>
									<CompositeTransform Rotation="180"/>
								</Image.RenderTransform>
							</Image>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="ListBoxStyle1" TargetType="ListBox">
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
			<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
			<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
			<Setter Property="BorderThickness" Value="0"/>
			<Setter Property="BorderBrush" Value="Transparent"/>
			<Setter Property="Padding" Value="0"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="ListBox">
						<ScrollViewer x:Name="ScrollViewer" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Foreground="{TemplateBinding Foreground}" Padding="{TemplateBinding Padding}">
							<ItemsPresenter/>
						</ScrollViewer>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="ButtonStyle2" TargetType="Button">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Disabled"/>
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver"/>
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ColorAnimation Duration="0" To="#00000000" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle" d:IsOptimized="True"/>
										</Storyboard>
									</VisualState>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Rectangle x:Name="rectangle" Fill="#0C000000" Stroke="#FFBFBFBF"/>	  				
							<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="10,0,10,-5"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="ButtonStyle1" TargetType="Button">
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}"/>
			<Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
			<Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
			<Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiBold}"/>
			<Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
			<Setter Property="Padding" Value="10,3,10,5"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="Button">
						<Grid Background="Transparent">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver"/>
									<VisualState x:Name="Pressed">
										<Storyboard>
											<ColorAnimation Duration="0" To="White" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="ButtonBackground" d:IsOptimized="True"/>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Disabled">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="image">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<DoubleAnimation Duration="0" To="0.2" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="image" d:IsOptimized="True"/>
										</Storyboard>
									</VisualState>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Border x:Name="ButtonBackground" BorderBrush="#FFBFBFBF" Background="#0C000000" Margin="0" BorderThickness="1">
								<StackPanel Orientation="Horizontal">
									<ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" Margin="0,5"/>
									<Image x:Name="image" Margin="0" Source="icons/appbar.download.rest.png" Stretch="Fill" HorizontalAlignment="Right" VerticalAlignment="Center" Height="32" Width="32"/>
								</StackPanel>
								
							</Border>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="DatePickerStyle1" TargetType="toolkit:DatePicker">
			<Setter Property="Background" Value="{StaticResource PhoneTextBoxBrush}"/>
			<Setter Property="BorderThickness" Value="0"/>
			<Setter Property="Foreground" Value="{StaticResource PhoneTextBoxForegroundBrush}"/>
			<Setter Property="HorizontalContentAlignment" Value="Left"/>
			<Setter Property="PickerPageUri" Value="/Microsoft.Phone.Controls.Toolkit;component/DateTimePickers/DatePickerPage.xaml"/>
			<Setter Property="ValueStringFormat" Value="{}{0:d}"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="toolkit:DatePicker">
						<StackPanel>
							<ContentControl ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="12,0,12,-4" Foreground="#66FFFFFF"/>
							<Button x:Name="DateTimeButton" BorderThickness="{TemplateBinding BorderThickness}" Content="{TemplateBinding ValueString}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Foreground="#DE000000" Style="{StaticResource ButtonStyle1}" FontFamily="Segoe WP SemiLight" FontSize="21.333"/>
						</StackPanel>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="ListBoxStyle2" TargetType="ListBox">
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
			<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
			<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
			<Setter Property="BorderThickness" Value="0"/>
			<Setter Property="BorderBrush" Value="Transparent"/>
			<Setter Property="Padding" Value="0"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="ListBox">
						<ItemsPresenter d:LayoutOverrides="Width"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="ListBoxStyle3" TargetType="ListBox">
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
			<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
			<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
			<Setter Property="BorderThickness" Value="0"/>
			<Setter Property="BorderBrush" Value="Transparent"/>
			<Setter Property="Padding" Value="0"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="ListBox">
						<ItemsPresenter d:LayoutOverrides="Width"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<ControlTemplate x:Key="PhoneDisabledTextBoxTemplate" TargetType="TextBox">
			<ContentControl x:Name="ContentElement" BorderThickness="0" HorizontalContentAlignment="Stretch" Margin="{StaticResource PhoneTextBoxInnerMargin}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="Stretch"/>
		</ControlTemplate>
		<Style x:Key="TextBoxStyle3" TargetType="TextBox">
			<Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilyNormal}"/>
			<Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
			<Setter Property="Background" Value="{StaticResource PhoneTextBoxBrush}"/>
			<Setter Property="Foreground" Value="{StaticResource PhoneTextBoxForegroundBrush}"/>
			<Setter Property="BorderBrush" Value="{StaticResource PhoneTextBoxBrush}"/>
			<Setter Property="SelectionBackground" Value="{StaticResource PhoneAccentBrush}"/>
			<Setter Property="SelectionForeground" Value="{StaticResource PhoneTextBoxSelectionForegroundBrush}"/>
			<Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
			<Setter Property="Padding" Value="2"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="TextBox">
						<Grid Background="Transparent">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver"/>
									<VisualState x:Name="Disabled">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EnabledBorder">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Collapsed</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledOrReadonlyBorder">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="ReadOnly">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EnabledBorder">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Collapsed</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledOrReadonlyBorder">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Visibility>Visible</Visibility>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="DisabledOrReadonlyBorder">
												<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneTextBoxBrush}"/>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="DisabledOrReadonlyBorder">
												<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneTextBoxBrush}"/>
											</ObjectAnimationUsingKeyFrames>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="DisabledOrReadonlyContent">
												<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneTextBoxReadOnlyBrush}"/>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
								</VisualStateGroup>
								<VisualStateGroup x:Name="FocusStates">
									<VisualState x:Name="Focused">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="EnabledBorder">
												<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneTextBoxEditBorderBrush}"/>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Unfocused"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Border x:Name="EnabledBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Margin="{StaticResource PhoneTouchTargetOverhang}" Background="White">
								<ContentControl x:Name="ContentElement" BorderThickness="0" HorizontalContentAlignment="Stretch" Margin="{StaticResource PhoneTextBoxInnerMargin}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="Stretch"/>
							</Border>
							<Border x:Name="DisabledOrReadonlyBorder" BorderBrush="{StaticResource PhoneDisabledBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="Transparent" Margin="{StaticResource PhoneTouchTargetOverhang}" Visibility="Collapsed">
								<TextBox x:Name="DisabledOrReadonlyContent" Background="Transparent" Foreground="{StaticResource PhoneDisabledBrush}" FontWeight="{TemplateBinding FontWeight}" FontStyle="{TemplateBinding FontStyle}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding FontFamily}" IsReadOnly="True" SelectionForeground="{TemplateBinding SelectionForeground}" SelectionBackground="{TemplateBinding SelectionBackground}" TextAlignment="{TemplateBinding TextAlignment}" TextWrapping="{TemplateBinding TextWrapping}" Text="{TemplateBinding Text}" Template="{StaticResource PhoneDisabledTextBoxTemplate}"/>
							</Border>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</phone:PhoneApplicationPage.Resources>
	<phone:PhoneApplicationPage.FontFamily>
		<StaticResource ResourceKey="PhoneFontFamilyNormal"/>
	</phone:PhoneApplicationPage.FontFamily>
	<phone:PhoneApplicationPage.FontSize>
		<StaticResource ResourceKey="PhoneFontSizeNormal"/>
	</phone:PhoneApplicationPage.FontSize>
	<phone:PhoneApplicationPage.Foreground>
		<StaticResource ResourceKey="PhoneForegroundBrush"/>
	</phone:PhoneApplicationPage.Foreground>
	<Grid x:Name="LayoutRoot" Background="White" Margin="0">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" MinHeight="42.045"/>
			<RowDefinition/>
		</Grid.RowDefinitions>

		<!--TitlePanel contains the name of the application and page title-->

        <!--ContentPanel - place additional content here-->
		<StackPanel x:Name="TitlePanel" Background="Black" Margin="0" Grid.Row="0" Orientation="Horizontal">
			<Image Source="icons/icon_oil.png" Stretch="Fill" Width="42" Margin="12,0,0,0"/>
			<TextBlock x:Name="ApplicationTitle" Text="Oil Prices" Style="{StaticResource PhoneTextNormalStyle}" FontFamily="Segoe WP" FontSize="21.333" FontWeight="Bold" VerticalAlignment="Center" Margin="12,0" Foreground="White"/>
		</StackPanel>

        <!--ContentPanel - place additional content here-->
		<Grid x:Name="ContentPanel" Grid.Row="1" Margin="0">
			<Grid>
				<StackPanel Margin="0">
					<TextBlock TextWrapping="Wrap" Text="Price comparison" Foreground="Black" HorizontalAlignment="Center" FontFamily="Segoe WP Semibold" FontSize="32" Margin="0,10,0,0" FontWeight="Bold"/>
					<TextBlock TextWrapping="Wrap" Text="เปรียบเทียบราคาน้ำมัน" Foreground="Black" HorizontalAlignment="Center" FontFamily="/CheckOilPrices;component/Fonts/Fonts.zip#TH SarabunPSK" FontSize="26.667" Margin="0,-5,0,0" FontWeight="Bold"/>
					<TextBlock x:Name="todayTxt" TextWrapping="Wrap" Text="Saturday, 24 September 2011" HorizontalAlignment="Center" FontFamily="Segoe WP SemiLight" FontSize="24" Margin="0,-5,0,0" FontWeight="Bold">
						<TextBlock.Foreground>
							<SolidColorBrush Color="{StaticResource PhoneAccentColor}"/>
						</TextBlock.Foreground>
					</TextBlock>
					<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="22,20,22,0">
						<StackPanel><TextBlock Text="PTT" Foreground="#A5000000" Width="143" HorizontalAlignment="Center" TextAlignment="Center" FontFamily="Segoe WP SemiLight" FontSize="26.667" FontWeight="Bold" />
							<TextBlock Text="ปตท." Foreground="#A5000000" Width="143" HorizontalAlignment="Center" TextAlignment="Center" FontFamily="/CheckOilPrices;component/Fonts/Fonts.zip#TH SarabunPSK" FontSize="26.667" FontWeight="Bold" Margin="0,-10,0,0" /></StackPanel>
						<StackPanel><TextBlock Text="Bangchak" Foreground="#A5000000" Width="143" HorizontalAlignment="Center" TextAlignment="Center" FontFamily="Segoe WP SemiLight" FontSize="26.667" FontWeight="Bold" />
							<TextBlock Text="บางจาก" Foreground="#A5000000" Width="143" HorizontalAlignment="Center" TextAlignment="Center" FontFamily="/CheckOilPrices;component/Fonts/Fonts.zip#TH SarabunPSK" FontSize="26.667" FontWeight="Bold" Margin="0,-10,0,0" /></StackPanel>
					</StackPanel>
					<ListBox Margin="22,0" Height="586">
						<StackPanel Orientation="Horizontal" Margin="0,0,0,2">
							<Grid Background="#0C000000" Width="146">
								<TextBlock Margin="10,0,0,0" TextWrapping="Wrap" VerticalAlignment="Center" d:LayoutOverrides="Width" Foreground="Black" FontSize="24"><Run Text="Gasoline "/><Run Text="91"/></TextBlock>
							</Grid>
							<StackPanel Background="#05000000" Margin="2,0,0,0" Width="143">
								<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="18.667" Text="Blue Gasoline 91" HorizontalAlignment="Center"/>
								<TextBlock x:Name="soline91pttTxt" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="24" Text="36.67" HorizontalAlignment="Center"/>
							</StackPanel>
							<StackPanel Background="#05000000" Margin="2,0,0,0" Width="143">
								<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="18.667" Text="GreenPlus 91" HorizontalAlignment="Center"/>
								<TextBlock x:Name="soline91bjTxt" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="24" Text="36.67" HorizontalAlignment="Center"/>
							</StackPanel>
						</StackPanel>
						<StackPanel Orientation="Horizontal" Margin="0,0,0,2">
							<Grid Background="#0C000000" Width="146">
								<TextBlock Margin="10,0,0,0" TextWrapping="Wrap" VerticalAlignment="Center" d:LayoutOverrides="Width" Foreground="Black" FontSize="24" Text="Diesel"/>
							</Grid>
							<StackPanel Background="#05000000" Margin="2,0,0,0" Width="143">
								<TextBlock TextWrapping="Wrap" VerticalAlignment="Center" Foreground="Black" FontSize="18.667" Text="Blue Diesel" HorizontalAlignment="Center"/>
								<TextBlock x:Name="dieselpttTxt" TextWrapping="Wrap" VerticalAlignment="Center" Foreground="Black" FontSize="24" Text="36.67" HorizontalAlignment="Center"/>
							</StackPanel>
							<StackPanel Margin="2,0,0,0" Width="143">
								<StackPanel x:Name="b5Grid" Background="#05000000" Width="143">
									<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="18.667" Text="SuperPower B5" HorizontalAlignment="Center"/>
									<TextBlock x:Name="B5bjTxt" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="24" Text="36.67" HorizontalAlignment="Center"/>
								</StackPanel>
								<StackPanel Background="#05000000" Width="143" Margin="0,2,0,0">
									<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="18.667" Text="SuperPower D" HorizontalAlignment="Center"/>
									<TextBlock x:Name="Dbjtxt" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="24" Text="36.67" HorizontalAlignment="Center"/>
								</StackPanel>
								
							</StackPanel>
						</StackPanel>
						<StackPanel Orientation="Horizontal" Margin="0,0,0,2">
							<Grid Background="#0C000000" Width="146">
								<TextBlock Margin="10,0,0,0" TextWrapping="Wrap" VerticalAlignment="Center" d:LayoutOverrides="Width" Foreground="Black" FontSize="24" Text="Gasohol 91"/>
							</Grid>
							<StackPanel Background="#05000000" Margin="2,0,0,0" Width="143">
								<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="18.667" Text="Blue Gasohol 91" HorizontalAlignment="Center"/>
								<TextBlock x:Name="sohol91pttTxt" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="24" Text="36.67" HorizontalAlignment="Center"/>
							</StackPanel>
							<StackPanel Background="#05000000" Margin="2,0,0,0" Width="143">
								<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="18.667" Text="Gasohol 91" HorizontalAlignment="Center"/>
								<TextBlock x:Name="sohol91bjTxt" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="24" Text="36.67" HorizontalAlignment="Center"/>
							</StackPanel>
						</StackPanel>
						<StackPanel Orientation="Horizontal" Margin="0,0,0,2">
							<Grid Background="#0C000000" Width="146">
								<TextBlock Margin="10,0,0,0" TextWrapping="Wrap" VerticalAlignment="Center" d:LayoutOverrides="Width" Foreground="Black" FontSize="24" Text="Gasohol 95"/>
							</Grid>
							<StackPanel Background="#05000000" Margin="2,0,0,0" Width="143">
								<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="18.667" Text="Blue Gasohol 95" HorizontalAlignment="Center"/>
								<TextBlock x:Name="sohol95pttTxt" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="24" Text="36.67" HorizontalAlignment="Center"/>
							</StackPanel>
							<StackPanel Background="#05000000" Margin="2,0,0,0" Width="143">
								<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="18.667" Text="Gasohol 95" HorizontalAlignment="Center"/>
								<TextBlock x:Name="sohol95bjTxt" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="24" Text="36.67" HorizontalAlignment="Center"/>
							</StackPanel>
						</StackPanel>
						<StackPanel Orientation="Horizontal" Margin="0,0,0,2">
							<Grid Background="#0C000000" Width="146">
								<TextBlock Margin="10,0,0,0" TextWrapping="Wrap" VerticalAlignment="Center" d:LayoutOverrides="Width" Foreground="Black" FontSize="24" Text="Gasohol E20"/>
							</Grid>
							<StackPanel Background="#05000000" Margin="2,0,0,0" Width="143">
								<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="18.667" Text="Blue Gasohol E20" HorizontalAlignment="Center"/>
								<TextBlock x:Name="E20pttTxt" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="24" Text="36.67" HorizontalAlignment="Center"/>
							</StackPanel>
							<StackPanel Background="#05000000" Margin="2,0,0,0" Width="143">
								<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="18.667" Text="Gasohol E20" HorizontalAlignment="Center"/>
								<TextBlock x:Name="E20bjTxt" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="24" Text="36.67" HorizontalAlignment="Center"/>
							</StackPanel>
						</StackPanel>
						<StackPanel Orientation="Horizontal" Margin="0,0,0,2">
							<Grid Background="#0C000000" Width="146">
								<TextBlock Margin="10,0,0,0" TextWrapping="Wrap" VerticalAlignment="Center" d:LayoutOverrides="Width" Foreground="Black" FontSize="24" Text="Gasohol E85"/>
							</Grid>
							<StackPanel Background="#05000000" Margin="2,0,0,0" Width="143">
								<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="18.667" Text="Blue Gasohol E85" HorizontalAlignment="Center"/>
								<TextBlock x:Name="E85pttTxt" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="24" Text="36.67" HorizontalAlignment="Center"/>
							</StackPanel>
							<StackPanel Background="#05000000" Margin="2,0,0,0" Width="143">
								<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="18.667" Text="Gasohol E85" HorizontalAlignment="Center"/>
								<TextBlock x:Name="E85bjTxt" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="24" Text="36.67" HorizontalAlignment="Center"/>
							</StackPanel>
						</StackPanel>
						<StackPanel Orientation="Horizontal" Margin="0,20,0,2">
							<Grid Background="#0C000000" Width="146">
								<TextBlock Margin="10,0,0,0" TextWrapping="Wrap" VerticalAlignment="Center" d:LayoutOverrides="Width" Foreground="Black" FontSize="24" Text="NGV"/>
							</Grid>
							<StackPanel Background="#05000000" Margin="2,0,0,0" Width="143">
								<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="18.667" Text="NGV" HorizontalAlignment="Center"/>
								<TextBlock x:Name="NGVpttTxt" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="24" Text="36.67" HorizontalAlignment="Center"/>
							</StackPanel>
							<StackPanel Background="#05000000" Margin="2,0,0,0" Width="143">
								<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="18.667" Text="NGV" HorizontalAlignment="Center"/>
								<TextBlock x:Name="NGVbjTxt" TextWrapping="Wrap" VerticalAlignment="Top" Foreground="Black" FontSize="24" Text="36.67" HorizontalAlignment="Center"/>
							</StackPanel>
						</StackPanel>
					</ListBox>
				</StackPanel>
			</Grid></Grid>
		<Grid x:Name="waitScr" Margin="0,-42.045,0,0" Grid.Row="1" Background="#E5000000" Visibility="Collapsed">
			<toolkit:PerformanceProgressBar IsIndeterminate="True" VerticalAlignment="Center" Height="50">
				<toolkit:PerformanceProgressBar.Foreground>
					<SolidColorBrush Color="{StaticResource PhoneAccentColor}"/>
				</toolkit:PerformanceProgressBar.Foreground>
				<toolkit:PerformanceProgressBar.Background>
					<SolidColorBrush Color="{StaticResource PhoneAccentColor}"/>
				</toolkit:PerformanceProgressBar.Background>
			</toolkit:PerformanceProgressBar>
		</Grid>
	</Grid>
</phone:PhoneApplicationPage>